const mongoose = require('mongoose');

let Schema = mongoose.Schema

const memberSchema = new Schema({
    memberName: {type: String, required: true},
    memberMobile: {type: String, required: true},
    memberWeight: {type: String},
    memberHeight: {type: String},
    memberRemark: {type: String},
    memberJoinTime: {type: String}, // 入伍时间
    memberBirthday: {type: String}, // 生日
    memberLinkman: {type: String}, // 联系人
    boatId: { type: String }, // 队伍id
    memberLinkMobile: {type: String}, // 联系人电话
    memberState: {type: String, default: '1',enum:['0','1', '2']}, // 0离队 1在队 2休假
    createrId: {type: String, required: true},// 登记人的id
    createrMobile: {type: String},// 登记人的电话
    updateId:  {type: String}, // 更新这id
    updateMobile:  {type: String}
})

module.exports = mongoose.model('member', memberSchema)